[%
metamodel http://www.eclipse.org/uml2/2.1.0/UML

import org.acceleo.modules.uml2.services.Uml2Services
import org.acceleo.modules.uml2.services.StringServices

import org.taam.modules.utils.config

%]

[%-- This template generate web.xml configuration file --%]

[%script type="Model" name="generate" file="[%repertoryTaam%]/[%nameTaam%].tld"%]
<?xml version="1.0" encoding="ISO-8859-1"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
	version="2.0">
	<display-name>[%displayTaam%]</display-name>
	<tlib-version>[%versionTaam%]</tlib-version>
	<short-name>[%shortTaam%]</short-name>
	<uri>[%uriTaam%]</uri>
	[%for (eAllContents("Class")){%]
		[%if (hasStereotype("Taam")){%]		
	<tag>
		<name>[%name%]</name>
		<tag-class>[%package.name%].[%name%]Tag</tag-class>
		<!-- [%startUserCode%] Ajoutez ici vos paramètres pour le tag -->
		<body-content>JSP</body-content>
		<!-- [%endUserCode%] -->
		[%for (attribute){%]
		<attribute>
			<name>[%name%]</name>
			<!-- [%startUserCode%] Ajoutez vos paramètres pour les attributs -->
			<required>yes</required>
			<rtexprvalue>true</rtexprvalue>
			<!-- [%endUserCode%] -->
		</attribute>
		[%}%]
	</tag>
		[%}%]
	[%}%]
</taglib>